hotplug/Linux: fix same_vm check in block script
authorWei Liu <wei.liu2@citrix.com>
Wed, 13 Apr 2016 17:02:36 +0000 (18:02 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 15 Apr 2016 11:02:28 +0000 (12:02 +0100)
commitf3a7ca02400d1c416e97451b4aebfaf608fc8192
tree267589efbedfed299a365cd41b85e13cf7233ffe
parentde28b189bd329dd20a245a318be8feea2c4cc60a
hotplug/Linux: fix same_vm check in block script

The original same_vm check has two bugs. When stubdom is in use because
it relies on numeric domid to check if two domains are in fact the same
one.  Another one is that the check would fail when two stubdoms are
checked against each other.

The first bug is fixed by using uuid to identify a domain. The second
bug is fixed by comparing the domains two stubdoms serve.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/Linux/block-common.sh